@import "../common";
@import "../components/crumbs";

.add_wrap{
  // overflow: auto;
  // height: calc(100% - 65px);
  padding-left: 15px;
  border: 1px solid $border-color-default;
  background-color: $color-white;
  position: relative;
  // max-height: 820px;
  .tit{
    width: 1040px;
    height: 55px;
    line-height: 55px;
    border-bottom: 1px solid $border-color-default;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    h2{
      padding: 0 15px;
      font-size: 20px;
    }
  }
  .el-form{
    width: 1040px;
     padding-top: 6px;
    >.el-row{
      padding: 30px 0 10px;
      border-bottom: 1px solid #d7d7d7;
      &:last-child{
        border: 0 none;
      }
      .el-form-item {
        display: inline;
        float: left;
        width: 50%;
        .el-form-item__label{
          // height: 30px;
          line-height: 31px;
          color: $color-black;
        }
        .el-form-item__content{
          position: relative;
          line-height: 31px;
          .el-textarea__inner{
            border: 1px solid #d7d7d7;
            background-color: #f7f7f7;
          }
          .el-input-group__append{
            .el-select{
              width: auto;
            }
          }
          .el-cascader,.el-select,.el-date-editor{
            width: 320px;
            line-height: 30px;
            height: 30px;
            .el-range-separator,.el-range__icon,.el-icon-circle-close{
              line-height: 22px;
            }
            .el-input {
              .el-input__inner{
                width: 100%;
                height: 30px;
                vertical-align: top;
              }
            }
          }
          .el-cascader{
            height: auto;
          }
          .el-select{
            height: auto;
            .el-select__tags{
              top:0;
              -webkit-transform: translateY(0)
              // bottom: 0;
            }
          }
          .el-input {
            .el-input__inner {
              vertical-align: top;
              height: 30px;
              line-height: 30px;
              border: 1px solid #d7d7d7;
              background-color: #f7f7f7;
            }
            .el-input__icon{
              line-height: 30px;
            }
          }
        }
        
      }
      .img_item{
        width: 100%;
        clear: both;
        .el-form-item__label{
          height: 130px;
          line-height: 130px;
        }
        .el-form-item__content{
          .img{
            display: inline-block;
            width: 320px;
            height: 320px;
            line-height: 320px;
            border: 1px solid $border-color-default;
            background: #f7f7f7;
            text-align: center;
            overflow: hidden;
            .el-form-item__content{
              width: 320px;
              height: 320px;
              line-height: 320px;
              text-align: center;
            }
            img{
              width: 100%;
            }
            &.photo{
              width: 120px;
              height: 120px;
              line-height: 120px;
              border-radius: 50%;
              .el-form-item__content{
                width: 120px;
                height: 120px;
                line-height: 120px;
              }
            }
            i{
              font-size: 50px;
              color:#d7d7d7;
              vertical-align: middle;
            }
          }
          .img_card{
            display: inline-block;
            width: 320px;
            height: 200px;
            line-height: 200px;
            border: 1px solid $border-color-default;
            border-radius: 2%;
            background: #f7f7f7;
            text-align: center;
            overflow: hidden;
            .el-form-item__content{
              width: 320px;
              height: 200px;
              line-height: 200px;
              text-align: center;
            }
            img{
              width: 100%;
            }
            &.photo{
              width: 120px;
              height: 120px;
              line-height: 120px;
              border-radius: 50%;
              .el-form-item__content{
                width: 120px;
                height: 120px;
                line-height: 120px;
              }
            }
            i{
              font-size: 50px;
              color:#d7d7d7;
              vertical-align: middle;
            }
          }
          .el-input.photo_input {
            &.file {
              width: 120px;
              height: 120px;
            }
            &.file_card {
              width: 320px;
              height: 200px;
            }
          }
          .txt{
            display: inline-block;
            width: 200px;
            line-height: 15px;
            font-size: 12px;
            vertical-align: top;
            margin: 0 0 0 20px;
            span{
              color: $color-gray;
            }
            .el-date-editor{
              margin-top:10px;
              .el-input__icon{
                line-height: 30px;
              }
            }
            &.photo_txt{
              margin-top: 40px;
            }
          }
          .el-input{
            &.file{
              position: absolute;
              top: 0;
              left: 0;
              width: 320px;
              height: 320px;
              border-radius: 50%;
              overflow: hidden;
              opacity: 0;
              .el-input__inner{
                width: 100%;
                height: 100%;
              }
            }
            &.file_card{
              position: absolute;
              top: 0;
              left: 0;
              width: 320px;
              height: 200px;
              border-radius: 50%;
              overflow: hidden;
              opacity: 0;
              .el-input__inner{
                width: 100%;
                height: 100%;
              }
            }
          }
        }
      }
      // 药品图片上传样式上传
      .location_item{
        height: 60px;
        width: 100%;
        line-height: 60px;
        .el-input {
          .el-input__inner{
            height: 30px;
          }
        }
      }
    }
    .upload-img {
      .el-upload {
        width: 100% !important;
    
        .el-upload-dragger {
          width: 100%;
          display: flex;
          justify-content: space-around;
          align-items: center;
    
          .tip {
            padding-bottom: 30px;
          }
        }
      }
    }
    .avatar-uploader .el-upload {
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .avatar-uploader .el-upload:hover {
      border-color: #409EFF;
    }
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 178px;
      height: 178px;
      line-height: 178px;
      text-align: center;
    }
    .avatar {
      width: 178px;
      height: 178px;
      display: block;
    }
  }
  .el-table{
    margin-bottom: 10px;
  }
  // 批量新增时的特殊样式 - 以id选择器修改
  #batch_width {
    width: 805px;
  }
  #batch_tit{
    width: 810px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    .el-switch{
      display:block;
      margin-right: 10px;
    }
  }

  // 2021.5.21 by lsx
  // 设置多级收样员后方按钮排列的样式
  // #groupSyUser{
  //   // 选择框后续放两个按钮 
  //   .el-select{
  //     width: 229px;
  //   }
  //   button{
  //     padding: 5px 5px;
  //     font-size: 19px;
  //     margin-left: 0;
  //   }
  // }
  #groupSyUser{
    // 选择框后，只有一个增加按钮
    .el-select{
      width: 264px;
    }
    button{
      padding: 5px 5px;
      font-size: 19px;
      margin-left: 0;
    }
    
  }
  
}
.add-detail_wrap{
  .el-image{
    width: 320px;
    height: 200px;
  }
}